﻿using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;

namespace Elifart.Library
{
    [Serializable]
    public class TeamCollection : ObservableCollection<Team>
    {
        #region Constructor

        public TeamCollection()
        {
        }

        #endregion

        #region Attributes and Properties

        public Team this[string guid]
        {
            get
            {
                foreach (Team team in this)
                    if (string.Compare(team.GUID, guid) == 0)
                        return team;

                return null;
            }
        }

        #endregion
    }
}